package com.tuocent.dagv2.service;

import com.tuocent.dagv2.common.AjaxResult;
import com.tuocent.dagv2.entity.Projects;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;

import java.io.FileNotFoundException;
import java.util.Map;

/**
 * <p>
 * 项目信息 服务类
 * </p>
 *
 * @author Vincent
 * @since 2025-07-22
 */
public interface IProjectsService extends IService<Projects> {

    String projectInfo(Model model);

    AjaxResult getProjectInfo(Integer page, Integer limit);

    AjaxResult importProject(MultipartFile file) throws FileNotFoundException;

    AjaxResult delProject(Map<String, Object> data);

    String setProjectStart(Model model, String id);

    AjaxResult projectStart(Map<String, Object> data);

    AjaxResult projectFinish(Map<String, Object> data);

    String setProjectFinish(Model model, String id);

    AjaxResult getAllProjectInfo();
}
